package com.baidu.day04;

public class Demo03 {
    public static void main(String[] args) {
        //new一次就会创建一个对象
        Student p1 = new Student();
        System.out.println(p1);

        System.out.println("========================");

        Student p2 = new Student();
        System.out.println(p2);

        Student p3 = new Student();
        p3.name = "张三";
        String s = p3.getName();
        System.out.println(s);//张三

        //静态变量的调用:类.变量名
        System.out.println(Student.age);//18
    }
}
